package com.sh.原生序列化;

public class Test {
    public static void main(String[] args) throws Exception {


        Person person = new Person("张三", 18);
        JdkSerializer jdkSerializer = new JdkSerializer();
        byte[] serialized = jdkSerializer.serialize(person);
        System.out.println(serialized);


        Person person1 = jdkSerializer.deserialize(serialized, Person.class);
        System.out.println(person1.getName());


    }
}
